package operation

import (
	"context"
	"hotgo/internal/service"

	"hotgo/api/api/operation/v1"
)

func (c *ControllerV1) Banners(ctx context.Context, req *v1.BannersReq) (res *v1.BannersRes, err error) {

	list, err := service.ApiOperation().BannersList(ctx)
	if err != nil {
		return
	}
	res = new(v1.BannersRes)
	res.List = list
	return
}
